<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibDriver CH9121: ch9121 interface driver function</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibDriver CH9121
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
   <div id="projectbrief">CH9121 full function driver</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('group__ch9121__interface__driver.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">ch9121 interface driver function<div class="ingroups"><a class="el" href="group__ch9121__driver.html">ch9121 driver function</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>ch9121 interface driver modules  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gaafb066d6c2dacb045876319b9ae48391"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__interface__driver.html#gaafb066d6c2dacb045876319b9ae48391">ch9121_interface_uart_init</a> (void)</td></tr>
<tr class="memdesc:gaafb066d6c2dacb045876319b9ae48391"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface uart init  <a href="group__ch9121__interface__driver.html#gaafb066d6c2dacb045876319b9ae48391">More...</a><br /></td></tr>
<tr class="separator:gaafb066d6c2dacb045876319b9ae48391"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7cfaafde3831ef0d3200fa7bd4877406"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__interface__driver.html#ga7cfaafde3831ef0d3200fa7bd4877406">ch9121_interface_uart_deinit</a> (void)</td></tr>
<tr class="memdesc:ga7cfaafde3831ef0d3200fa7bd4877406"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface uart deinit  <a href="group__ch9121__interface__driver.html#ga7cfaafde3831ef0d3200fa7bd4877406">More...</a><br /></td></tr>
<tr class="separator:ga7cfaafde3831ef0d3200fa7bd4877406"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7162ad2eded271ed24160ae188d8533e"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__interface__driver.html#ga7162ad2eded271ed24160ae188d8533e">ch9121_interface_uart_read</a> (uint8_t *buf, uint16_t len)</td></tr>
<tr class="memdesc:ga7162ad2eded271ed24160ae188d8533e"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface uart read  <a href="group__ch9121__interface__driver.html#ga7162ad2eded271ed24160ae188d8533e">More...</a><br /></td></tr>
<tr class="separator:ga7162ad2eded271ed24160ae188d8533e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga83237d6e503fc9572678ce25559af6a8"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__interface__driver.html#ga83237d6e503fc9572678ce25559af6a8">ch9121_interface_uart_flush</a> (void)</td></tr>
<tr class="memdesc:ga83237d6e503fc9572678ce25559af6a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface uart flush  <a href="group__ch9121__interface__driver.html#ga83237d6e503fc9572678ce25559af6a8">More...</a><br /></td></tr>
<tr class="separator:ga83237d6e503fc9572678ce25559af6a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8da1512cc7addcaaf49e80e5789defca"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__interface__driver.html#ga8da1512cc7addcaaf49e80e5789defca">ch9121_interface_uart_write</a> (uint8_t *buf, uint16_t len)</td></tr>
<tr class="memdesc:ga8da1512cc7addcaaf49e80e5789defca"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface uart write  <a href="group__ch9121__interface__driver.html#ga8da1512cc7addcaaf49e80e5789defca">More...</a><br /></td></tr>
<tr class="separator:ga8da1512cc7addcaaf49e80e5789defca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad24d87164c99484b276a089827dc1f64"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__interface__driver.html#gad24d87164c99484b276a089827dc1f64">ch9121_interface_reset_gpio_init</a> (void)</td></tr>
<tr class="memdesc:gad24d87164c99484b276a089827dc1f64"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface reset gpio init  <a href="group__ch9121__interface__driver.html#gad24d87164c99484b276a089827dc1f64">More...</a><br /></td></tr>
<tr class="separator:gad24d87164c99484b276a089827dc1f64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf72db05ed030b30da51b9406b547d1cb"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__interface__driver.html#gaf72db05ed030b30da51b9406b547d1cb">ch9121_interface_reset_gpio_deinit</a> (void)</td></tr>
<tr class="memdesc:gaf72db05ed030b30da51b9406b547d1cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface reset gpio deinit  <a href="group__ch9121__interface__driver.html#gaf72db05ed030b30da51b9406b547d1cb">More...</a><br /></td></tr>
<tr class="separator:gaf72db05ed030b30da51b9406b547d1cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaee721347bcca3a578f7fe0add0874ac0"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__interface__driver.html#gaee721347bcca3a578f7fe0add0874ac0">ch9121_interface_reset_gpio_write</a> (uint8_t data)</td></tr>
<tr class="memdesc:gaee721347bcca3a578f7fe0add0874ac0"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface reset gpio write  <a href="group__ch9121__interface__driver.html#gaee721347bcca3a578f7fe0add0874ac0">More...</a><br /></td></tr>
<tr class="separator:gaee721347bcca3a578f7fe0add0874ac0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacf8b3e382add1b66cd0d5809d2d784b7"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__interface__driver.html#gacf8b3e382add1b66cd0d5809d2d784b7">ch9121_interface_cfg_gpio_init</a> (void)</td></tr>
<tr class="memdesc:gacf8b3e382add1b66cd0d5809d2d784b7"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface cfg gpio init  <a href="group__ch9121__interface__driver.html#gacf8b3e382add1b66cd0d5809d2d784b7">More...</a><br /></td></tr>
<tr class="separator:gacf8b3e382add1b66cd0d5809d2d784b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2e04964bdc718090769481d9c72dc65c"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__interface__driver.html#ga2e04964bdc718090769481d9c72dc65c">ch9121_interface_cfg_gpio_deinit</a> (void)</td></tr>
<tr class="memdesc:ga2e04964bdc718090769481d9c72dc65c"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface cfg gpio deinit  <a href="group__ch9121__interface__driver.html#ga2e04964bdc718090769481d9c72dc65c">More...</a><br /></td></tr>
<tr class="separator:ga2e04964bdc718090769481d9c72dc65c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga670550df68be7cb34f15d92ccc54101a"><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__interface__driver.html#ga670550df68be7cb34f15d92ccc54101a">ch9121_interface_cfg_gpio_write</a> (uint8_t data)</td></tr>
<tr class="memdesc:ga670550df68be7cb34f15d92ccc54101a"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface cfg gpio write  <a href="group__ch9121__interface__driver.html#ga670550df68be7cb34f15d92ccc54101a">More...</a><br /></td></tr>
<tr class="separator:ga670550df68be7cb34f15d92ccc54101a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4664c8ca283f522e6ff18ecffe335e5d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__interface__driver.html#ga4664c8ca283f522e6ff18ecffe335e5d">ch9121_interface_delay_ms</a> (uint32_t ms)</td></tr>
<tr class="memdesc:ga4664c8ca283f522e6ff18ecffe335e5d"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface delay ms  <a href="group__ch9121__interface__driver.html#ga4664c8ca283f522e6ff18ecffe335e5d">More...</a><br /></td></tr>
<tr class="separator:ga4664c8ca283f522e6ff18ecffe335e5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabc9e3efd2d9d79d5da8cdd7b832fef5a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__ch9121__interface__driver.html#gabc9e3efd2d9d79d5da8cdd7b832fef5a">ch9121_interface_debug_print</a> (const char *const fmt,...)</td></tr>
<tr class="memdesc:gabc9e3efd2d9d79d5da8cdd7b832fef5a"><td class="mdescLeft">&#160;</td><td class="mdescRight">interface print format data  <a href="group__ch9121__interface__driver.html#gabc9e3efd2d9d79d5da8cdd7b832fef5a">More...</a><br /></td></tr>
<tr class="separator:gabc9e3efd2d9d79d5da8cdd7b832fef5a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>ch9121 interface driver modules </p>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga2e04964bdc718090769481d9c72dc65c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2e04964bdc718090769481d9c72dc65c">&#9670;&nbsp;</a></span>ch9121_interface_cfg_gpio_deinit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_interface_cfg_gpio_deinit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface cfg gpio deinit </p>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 cfg gpio deinit failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__interface__template_8c_source.html#l00159">159</a> of file <a class="el" href="driver__ch9121__interface__template_8c_source.html">driver_ch9121_interface_template.c</a>.</p>

</div>
</div>
<a id="gacf8b3e382add1b66cd0d5809d2d784b7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacf8b3e382add1b66cd0d5809d2d784b7">&#9670;&nbsp;</a></span>ch9121_interface_cfg_gpio_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_interface_cfg_gpio_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface cfg gpio init </p>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 cfg gpio init failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__interface__template_8c_source.html#l00147">147</a> of file <a class="el" href="driver__ch9121__interface__template_8c_source.html">driver_ch9121_interface_template.c</a>.</p>

</div>
</div>
<a id="ga670550df68be7cb34f15d92ccc54101a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga670550df68be7cb34f15d92ccc54101a">&#9670;&nbsp;</a></span>ch9121_interface_cfg_gpio_write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_interface_cfg_gpio_write </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface cfg gpio write </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>is the set data </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 write failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__interface__template_8c_source.html#l00172">172</a> of file <a class="el" href="driver__ch9121__interface__template_8c_source.html">driver_ch9121_interface_template.c</a>.</p>

</div>
</div>
<a id="gabc9e3efd2d9d79d5da8cdd7b832fef5a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabc9e3efd2d9d79d5da8cdd7b832fef5a">&#9670;&nbsp;</a></span>ch9121_interface_debug_print()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ch9121_interface_debug_print </td>
          <td>(</td>
          <td class="paramtype">const char *const&#160;</td>
          <td class="paramname"><em>fmt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface print format data </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">fmt</td><td>is the format data </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__interface__template_8c_source.html#l00192">192</a> of file <a class="el" href="driver__ch9121__interface__template_8c_source.html">driver_ch9121_interface_template.c</a>.</p>

</div>
</div>
<a id="ga4664c8ca283f522e6ff18ecffe335e5d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga4664c8ca283f522e6ff18ecffe335e5d">&#9670;&nbsp;</a></span>ch9121_interface_delay_ms()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ch9121_interface_delay_ms </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>ms</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface delay ms </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">ms</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__interface__template_8c_source.html#l00182">182</a> of file <a class="el" href="driver__ch9121__interface__template_8c_source.html">driver_ch9121_interface_template.c</a>.</p>

</div>
</div>
<a id="gaf72db05ed030b30da51b9406b547d1cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf72db05ed030b30da51b9406b547d1cb">&#9670;&nbsp;</a></span>ch9121_interface_reset_gpio_deinit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_interface_reset_gpio_deinit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface reset gpio deinit </p>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 reset gpio deinit failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__interface__template_8c_source.html#l00122">122</a> of file <a class="el" href="driver__ch9121__interface__template_8c_source.html">driver_ch9121_interface_template.c</a>.</p>

</div>
</div>
<a id="gad24d87164c99484b276a089827dc1f64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gad24d87164c99484b276a089827dc1f64">&#9670;&nbsp;</a></span>ch9121_interface_reset_gpio_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_interface_reset_gpio_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface reset gpio init </p>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 reset gpio init failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__interface__template_8c_source.html#l00110">110</a> of file <a class="el" href="driver__ch9121__interface__template_8c_source.html">driver_ch9121_interface_template.c</a>.</p>

</div>
</div>
<a id="gaee721347bcca3a578f7fe0add0874ac0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaee721347bcca3a578f7fe0add0874ac0">&#9670;&nbsp;</a></span>ch9121_interface_reset_gpio_write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_interface_reset_gpio_write </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface reset gpio write </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">data</td><td>is the set data </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 write failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__interface__template_8c_source.html#l00135">135</a> of file <a class="el" href="driver__ch9121__interface__template_8c_source.html">driver_ch9121_interface_template.c</a>.</p>

</div>
</div>
<a id="ga7cfaafde3831ef0d3200fa7bd4877406"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7cfaafde3831ef0d3200fa7bd4877406">&#9670;&nbsp;</a></span>ch9121_interface_uart_deinit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_interface_uart_deinit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface uart deinit </p>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 uart deinit failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__interface__template_8c_source.html#l00058">58</a> of file <a class="el" href="driver__ch9121__interface__template_8c_source.html">driver_ch9121_interface_template.c</a>.</p>

</div>
</div>
<a id="ga83237d6e503fc9572678ce25559af6a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga83237d6e503fc9572678ce25559af6a8">&#9670;&nbsp;</a></span>ch9121_interface_uart_flush()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_interface_uart_flush </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface uart flush </p>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 uart flush failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__interface__template_8c_source.html#l00084">84</a> of file <a class="el" href="driver__ch9121__interface__template_8c_source.html">driver_ch9121_interface_template.c</a>.</p>

</div>
</div>
<a id="gaafb066d6c2dacb045876319b9ae48391"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaafb066d6c2dacb045876319b9ae48391">&#9670;&nbsp;</a></span>ch9121_interface_uart_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_interface_uart_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface uart init </p>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 uart init failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__interface__template_8c_source.html#l00046">46</a> of file <a class="el" href="driver__ch9121__interface__template_8c_source.html">driver_ch9121_interface_template.c</a>.</p>

</div>
</div>
<a id="ga7162ad2eded271ed24160ae188d8533e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga7162ad2eded271ed24160ae188d8533e">&#9670;&nbsp;</a></span>ch9121_interface_uart_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t ch9121_interface_uart_read </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface uart read </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">*buf</td><td>points to a data buffer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>is the length of the data buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 read failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__interface__template_8c_source.html#l00072">72</a> of file <a class="el" href="driver__ch9121__interface__template_8c_source.html">driver_ch9121_interface_template.c</a>.</p>

</div>
</div>
<a id="ga8da1512cc7addcaaf49e80e5789defca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8da1512cc7addcaaf49e80e5789defca">&#9670;&nbsp;</a></span>ch9121_interface_uart_write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t ch9121_interface_uart_write </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>interface uart write </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">*buf</td><td>points to a data buffer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">len</td><td>is the length of the data buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code<ul>
<li>0 success</li>
<li>1 write failed </li>
</ul>
</dd></dl>
<dl class="section note"><dt>Note</dt><dd>none </dd></dl>

<p class="definition">Definition at line <a class="el" href="driver__ch9121__interface__template_8c_source.html#l00098">98</a> of file <a class="el" href="driver__ch9121__interface__template_8c_source.html">driver_ch9121_interface_template.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
